package com.it.server.service;

import com.it.common.result.PageResult;
import com.it.pojo.DTO.OrderDTO;
import com.it.pojo.DTO.OrderPaymentDTO;
import com.it.pojo.VO.OrderPaymentVO;
import com.it.pojo.VO.OrderSubmitVO;
import com.it.pojo.VO.OrdersVO;
import org.springframework.stereotype.Service;

@Service
public interface OrderService {
    OrderSubmitVO submit(OrderDTO orderDTO);

    OrderPaymentVO payment(OrderPaymentDTO orderPaymentDTO) throws Exception;

    void paySuccess(String outTradeNo);

    void cancel(Integer id) throws Exception;

    PageResult pageQuery(int page, int pageSize, Integer status);

    OrdersVO getOrderDetail(Integer id);
}
